package org.jiamandan.com.strategy.listener;

import com.alibaba.fastjson.JSON;
import io.netty.channel.Channel;
import lombok.AllArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang3.StringUtils;
import org.jiamandan.com.constant.DXConstant;
import org.jiamandan.com.dto.DXBasicDto;
import org.jiamandan.com.strategy.IDXContextListener;
import org.springframework.stereotype.Service;

@Service(value = DXConstant.Service.CMD_009)
@AllArgsConstructor
@Slf4j
public class DX009GetPileInfoListenerService implements IDXContextListener {

   // private WebSocketServer webSocketServer;

    @Override
    public void doExecute(DXBasicDto dto, Channel ctx) throws Exception {
        log.info("接收嘉满电-DX获取009设备信息指令(CMD=009)【"+dto.getDeviceNo()+"】报文:" + JSON.toJSONString(dto));
        String payload = dto.getData();

    }

}
